#include "type.h"

uint8 checksum(uint8 far *buf, uint16 len)
{
	uint8 sum = 0;

	while (len--)
		sum = (uint8)(sum + *buf++);

	return sum;
}
